package com.mirror.llk;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.AdapterView.OnItemClickListener;

public class ResumeChooseActivity extends Activity {

	private ListView resumeList;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.resume_list);
		resumeList = (ListView) this.findViewById(R.id.resumeList);
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.list_view_item_arrow, R.id.tv_sortItem_itemName);
		for (int i = 0; i < 20; i++) {
			adapter.add("item" + i);
		}
		resumeList.setAdapter(adapter);
		resumeList.setOnItemClickListener(new OnItemClickListener() {

			@Override
			public void onItemClick(AdapterView<?> adapterView, View arg1, int index, long arg3) {
				Intent intent = new Intent(ResumeChooseActivity.this, GameMainActivity.class);
				ResumeChooseActivity.this.startActivity(intent);
			}
		});
	}
}
